package com.example.demo.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Schema(description = "修改密码表单")
public class PasswordForm implements Serializable {
    @NotEmpty(message = "旧密码不能为空")
    @Schema(description = "旧密码")
    private String oldPassword;
    @NotEmpty(message = "新密码不能为空")
    @Schema(description = "新密码")
    private String newPassword;
    @NotEmpty(message = "确认密码不能为空")
    @Schema(description = "确认密码")
    private String confirmPassword;
}
